<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var obj = new Object();
    obj.name = '张三';
    obj.age = 18;
    obj.sex = '男';
    obj.sayHi = function () {
        console.log('哈喽！！！！！！！！！');
    }
    console.log(obj.name);
</script>
<body>

</body>
</html>